package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 票种 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "票种")
@Table ( name ="Ticket_Type")
public class TicketType  implements Serializable {

	private static final long serialVersionUID =  4655261113279384253L;

	/**
	 * 票种ID
	 */
	@ApiModelProperty(value = "票种ID")
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
   	@Column(name = "Ticket_Type_Id" )
	private Long ticketTypeId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 类型名称
	 */
	@ApiModelProperty(value = "类型名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 规则
	 */
	@ApiModelProperty(value = "表单图片")
   	@Column(name = "Rule" )
	private String rule;

	/**
	 * 次数
	 */
	@ApiModelProperty(value = "表单高度")
   	@Column(name = "Number" )
	private Long number;

	/**
	 * 价格
	 */
	@ApiModelProperty(value = "价格")
   	@Column(name = "Price" )
	private Long price;

	/**
	 * 人数
	 */
	@ApiModelProperty(value = "人数")
   	@Column(name = "Person" )
	private Long person;

	/**
	 * 票图片
	 */
	@ApiModelProperty(value = "票图片")
   	@Column(name = "Url" )
	private String url;

	/**
	 * 宽度
	 */
	@ApiModelProperty(value = "宽度")
   	@Column(name = "Width" )
	private Long width;

	/**
	 * 高度
	 */
	@ApiModelProperty(value = "高度")
   	@Column(name = "Height" )
	private Long height;

	/**
	 * X坐标
	 */
	@ApiModelProperty(value = "X坐标")
   	@Column(name = "QrcodeX" )
	private Long qrcodeX;

	/**
	 * Y坐标
	 */
	@ApiModelProperty(value = "Y坐标")
   	@Column(name = "QrcodeY" )
	private Long qrcodeY;

	/**
	 * 大小
	 */
	@ApiModelProperty(value = "大小")
   	@Column(name = "QrcodeSize" )
	private Long qrcodeSize;

	/**
	 * 售票开始日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "售票开始日期",example = "2018-10-01 12:18:48")
   	@Column(name = "StartDate" )
	private Date startDate;

	/**
	 * 售票结束日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "售票结束日期",example = "2018-10-01 12:18:48")
   	@Column(name = "EndDate" )
	private Date endDate;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	/**
	 * 横幅
	 */
	@ApiModelProperty(value = "广告")
   	@Column(name = "Banner" )
	private String banner;

	/**
	 * 次数
	 */
	@ApiModelProperty(value = "表单上边距")
   	@Column(name = "top" )
	private Long top;

	public Long getTop() {
		return this.top;
	}

	public void setTop(Long top) {
		this.top = top;
	}

	public String getBanner() {
		return this.banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public Long getTicketTypeId() {
		return this.ticketTypeId;
	}

	public void setTicketTypeId(Long ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRule() {
		return this.rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

	public Long getNumber() {
		return this.number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public Long getPrice() {
		return this.price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public Long getPerson() {
		return this.person;
	}

	public void setPerson(Long person) {
		this.person = person;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getWidth() {
		return this.width;
	}

	public void setWidth(Long width) {
		this.width = width;
	}

	public Long getHeight() {
		return this.height;
	}

	public void setHeight(Long height) {
		this.height = height;
	}

	public Long getQrcodeX() {
		return this.qrcodeX;
	}

	public void setQrcodeX(Long qrcodeX) {
		this.qrcodeX = qrcodeX;
	}

	public Long getQrcodeY() {
		return this.qrcodeY;
	}

	public void setQrcodeY(Long qrcodeY) {
		this.qrcodeY = qrcodeY;
	}

	public Long getQrcodeSize() {
		return this.qrcodeSize;
	}

	public void setQrcodeSize(Long qrcodeSize) {
		this.qrcodeSize = qrcodeSize;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"ticketTypeId='" + ticketTypeId + '\'' +
					"projectId='" + projectId + '\'' +
					"name='" + name + '\'' +
					"rule='" + rule + '\'' +
					"banner='" + banner + '\'' +
					"top='" + top + '\'' +
					"number='" + number + '\'' +
					"price='" + price + '\'' +
					"person='" + person + '\'' +
					"url='" + url + '\'' +
					"width='" + width + '\'' +
					"height='" + height + '\'' +
					"qrcodeX='" + qrcodeX + '\'' +
					"qrcodeY='" + qrcodeY + '\'' +
					"qrcodeSize='" + qrcodeSize + '\'' +
					"startDate='" + startDate + '\'' +
					"endDate='" + endDate + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
